home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 3 / MacMania 3.toast / Demo's / KarmaMacDemo / GAME_G1.DXR / 00211.ls < prev    next >
Encoding:
Text File  |  1995-10-24  |  3.7 KB  |  204 lines

  1. on moveSpin
  2.   global count, a, b, c, d, e, f, h, j, k, l, n, o, p, r, t, u, v, w, x, y, spin1, spin2, spin3, spin4, spin5, spin6, spin8, spin10, spin11, spin12, spin14, spin15, spin16, spin18, spin20, spin21, spin22, spin23, spin24, spin25
  3.   if a > 0 then
  4.     updateSprite(3)
  5.     if a = 2 then
  6.       set a to 0
  7.       set count to 0
  8.     else
  9.       set a to 2
  10.     end if
  11.     set spin1 to (spin1 + 1) mod 8
  12.   end if
  13.   if b > 0 then
  14.     updateSprite(4)
  15.     if b = 2 then
  16.       set b to 0
  17.       set count to 0
  18.     else
  19.       set b to 2
  20.     end if
  21.     set spin2 to (spin2 + 1) mod 8
  22.   end if
  23.   if c > 0 then
  24.     updateSprite(5)
  25.     if c = 2 then
  26.       set c to 0
  27.       set count to 0
  28.     else
  29.       set c to 2
  30.     end if
  31.     set spin3 to (spin3 + 1) mod 8
  32.   end if
  33.   if d > 0 then
  34.     updateSprite(6)
  35.     if d = 2 then
  36.       set d to 0
  37.       set count to 0
  38.     else
  39.       set d to 2
  40.     end if
  41.     set spin4 to (spin4 + 1) mod 8
  42.   end if
  43.   if e > 0 then
  44.     updateSprite(7)
  45.     if e = 2 then
  46.       set e to 0
  47.       set count to 0
  48.     else
  49.       set e to 2
  50.     end if
  51.     set spin5 to (spin5 + 1) mod 8
  52.   end if
  53.   if f > 0 then
  54.     updateSprite(8)
  55.     if f = 2 then
  56.       set f to 0
  57.       set count to 0
  58.     else
  59.       set f to 2
  60.     end if
  61.     set spin6 to (spin6 + 1) mod 8
  62.   end if
  63.   if h > 0 then
  64.     updateSprite(10)
  65.     if h = 2 then
  66.       set h to 0
  67.       set count to 0
  68.     else
  69.       set h to 2
  70.     end if
  71.     set spin8 to (spin8 + 1) mod 8
  72.   end if
  73.   if j > 0 then
  74.     updateSprite(12)
  75.     if j = 2 then
  76.       set j to 0
  77.       set count to 0
  78.     else
  79.       set j to 2
  80.     end if
  81.     set spin10 to (spin10 + 1) mod 8
  82.   end if
  83.   if k > 0 then
  84.     updateSprite(13)
  85.     if k = 2 then
  86.       set k to 0
  87.       set count to 0
  88.     else
  89.       set k to 2
  90.     end if
  91.     set spin11 to (spin11 + 1) mod 8
  92.   end if
  93.   if l > 0 then
  94.     updateSprite(14)
  95.     if l = 2 then
  96.       set l to 0
  97.       set count to 0
  98.     else
  99.       set l to 2
  100.     end if
  101.     set spin12 to (spin12 + 1) mod 8
  102.   end if
  103.   if n > 0 then
  104.     updateSprite(16)
  105.     if n = 2 then
  106.       set n to 0
  107.       set count to 0
  108.     else
  109.       set n to 2
  110.     end if
  111.     set spin14 to (spin14 + 1) mod 8
  112.   end if
  113.   if o > 0 then
  114.     updateSprite(17)
  115.     if o = 2 then
  116.       set o to 0
  117.       set count to 0
  118.     else
  119.       set o to 2
  120.     end if
  121.     set spin15 to (spin15 + 1) mod 8
  122.   end if
  123.   if p > 0 then
  124.     updateSprite(18)
  125.     if p = 2 then
  126.       set p to 0
  127.       set count to 0
  128.     else
  129.       set p to 2
  130.     end if
  131.     set spin16 to (spin16 + 1) mod 8
  132.   end if
  133.   if r > 0 then
  134.     updateSprite(20)
  135.     if r = 2 then
  136.       set r to 0
  137.       set count to 0
  138.     else
  139.       set r to 2
  140.     end if
  141.     set spin18 to (spin18 + 1) mod 8
  142.   end if
  143.   if t > 0 then
  144.     updateSprite(22)
  145.     if t = 2 then
  146.       set t to 0
  147.       set count to 0
  148.     else
  149.       set t to 2
  150.     end if
  151.     set spin20 to (spin20 + 1) mod 8
  152.   end if
  153.   if u > 0 then
  154.     updateSprite(23)
  155.     if u = 2 then
  156.       set u to 0
  157.       set count to 0
  158.     else
  159.       set u to 2
  160.     end if
  161.     set spin21 to (spin21 + 1) mod 8
  162.   end if
  163.   if v > 0 then
  164.     updateSprite(24)
  165.     if v = 2 then
  166.       set v to 0
  167.       set count to 0
  168.     else
  169.       set v to 2
  170.     end if
  171.     set spin22 to (spin22 + 1) mod 8
  172.   end if
  173.   if w > 0 then
  174.     updateSprite(25)
  175.     if w = 2 then
  176.       set w to 0
  177.       set count to 0
  178.     else
  179.       set w to 2
  180.     end if
  181.     set spin23 to (spin23 + 1) mod 8
  182.   end if
  183.   if x > 0 then
  184.     updateSprite(26)
  185.     if x = 2 then
  186.       set x to 0
  187.       set count to 0
  188.     else
  189.       set x to 2
  190.     end if
  191.     set spin24 to (spin24 + 1) mod 8
  192.   end if
  193.   if y > 0 then
  194.     updateSprite(27)
  195.     if y = 2 then
  196.       set y to 0
  197.       set count to 0
  198.     else
  199.       set y to 2
  200.     end if
  201.     set spin25 to (spin25 + 1) mod 8
  202.   end if
  203. end
  204.